﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace game.spirit
{
    public partial class UserControlspirit : UserControl
    {
        public UserControlspirit()
        {
            InitializeComponent();

            this.Disposed += UserControlspirit_Disposed;
        }

        private void UserControlspirit_Disposed(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
        }

        private void UserControlspirit_Load(object sender, EventArgs e)
        {
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            game.spirit.sp_block sp_block = new game.spirit.sp_block();
            sp_block.color = Color.Green;
            sp_block.point = new Point(0, 0);
            sp_block.size = 100;
            sp_block.bgcolor = this.BackColor;
            sp_block.graghics = Graphics.FromHwnd(this.Handle);
            sp_block.direction = game.com.Direction.Right;
            sp_block.paint();

            base.OnPaint(e);
        }
    }
}